import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    videoInfo: "",
    token: null,
    postId: null,
  },
  mutations: {
    setVideo(state,val){
      state.videoInfo = val; //修改视频数据
    },
    setPostid(state,val){
      state.postId = val; //修改视频id
    }
  },
  actions: {
  },
  modules: {
  }
})
